package cn.sofwin.day0126.homework.Pet;

public abstract class Pet {
    // 宠物名字
    private String name;

    // 宠物健康值
    private int health;

    // 和主人亲密度
    private int love;

    public Pet() {
    }

    public Pet(String name, int health, int love) {
        this.name = name;
        this.health = health;
        this.love = love;
    }

    public String getName() {
        return name;
    }

    public int getHealth() {
        return health;
    }

    public int getLove() {
        return love;
    }

    public abstract void print();
}
